package com.ky.tms.controller;


import com.ky.tms.entity.TmsOilRechange;
import com.ky.tms.service.ITmsOilRechangeService;
import com.ky.tms.util.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chengkaimao
 * @since 2020-06-04
 */
@RestController
@RequestMapping("/tms/tms-oil-rechange")
public class TmsOilRechangeController {

    @Autowired
    private ITmsOilRechangeService tmsOilRechangeService;

    @ApiOperation("油卡冲值分页")
    @GetMapping("page")
    public CommonResult page(TmsOilRechange tmsOilRechange, @RequestParam Long pageSize, @RequestParam Long current, HttpServletRequest request){
        return CommonResult.buildSuccess(tmsOilRechangeService.oilPage(tmsOilRechange, pageSize, current));
    }

}
